. as $root |
($severity[0].items | map({(.string): .display_name}) | add) as $severity_names |
(["| CVE ID        | Severity | Releases | Problem |",
  "| ------------- | -------- | -------- | ------- |"] +
 [$root.cves[] | 
  .id as $cve | 
  "| \($cve)  | \($severity_names[.severity] // .severity) | \(($root.cve_releases[$cve] // []) | join(", "))     | \(.problem) |"]) | 
.[]